#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2021/6/18 23:14
# @Author  : huidong.bai
# @File    : adb_utils.py
# @Software: PyCharm

def get_sn():
    import os
    buffer = os.popen('adb devices')
    for line in buffer:
        if '\tdevice' in line:
            sn = line.replace('\tdevice', '').strip()
            return sn
